#ifndef _TEXTURE_H_
#define _TEXTURE_H_

class texture
{
public:
	texture(){}
	virtual ~texture(){}

	u32				   m_width;
	u32				   m_height;
};

#include <d3d9.h>

class texture_dx9: public texture
{
public:
	texture_dx9(){m_texture=0;m_width=0;m_height=0;}
	~texture_dx9(){if(m_texture)m_texture->Release();}

	IDirect3DTexture9* m_texture;
};

#include <gl/gl.h>

class texture_ogl: public texture
{
public:
	texture_ogl(){m_texture=-1;m_width=0;m_height=0;}
	~texture_ogl(){if(m_texture!=-1)int i=0;/*#TODO*/}

	u32 m_texture;
};

#endif